package com.common.sdk.net.download.callback.error;

/**
 * 错误参数  在ExecutorDelivery中将错误类型总结合并
 * @author wenlonglv
 *
 */
public class DownloadState {
    // /**默认参数*/
    // public static final int DEFAULT_PARAM = 10000;
    // /**请求成功*/
    // public static final int NET_SUCCESS = 10001;

    /**网络错误-*/
    public static final int NET_ERROR_UNKNOWN = 20010;
    // /**请求成功-文件大小错误*/
    // public static final int NET_SUCCESS_SIZE_ERROR = 10101;
    /**网络错误-没网*/
    public static final int NET_ERROR_NO_NET = 20001;
    /**没有网络-且不上报统计*/
    public static final int NET_ERROR_NO_NET_NO_UPLOAD = 20002 ;
    /**网络错误-网络连接失败*/
    public static final int NET_ERROR_DEFAULT_NET_FAILED = 20003;
    // /**网络错误-网络连接异常*/
    // public static final int NET_ERROR_SERVICE_EXCEPTION = 20004;
    // /**网络错误-请求超时*/
    // public static final int NET_ERROR_SOCKET_TIMEOUT = 20005;
    // /**网络错误-请求超时*/
    // public static final int NET_ERROR_FILE_SIZE = 20006;

    // /**网络错误-下载错误-文件没创建*/
    // public static final int NET_ERROR_DOWNLOAD_FILECREATE_FAIL = 20100;
    /**网络错误-下载错误-获取网络io异常*/
    public static final int NET_ERROR_DOWNLOAD_IOEXCEPTION = 20101;
    /**网络错误-下载错误-获取文件io异常*/
    public static final int NET_ERROR_DOWNLOAD_FILE_IOEXCEPTION = 20102;
    /**网络错误-下载错误-获取文件初始化异常*/
    public static final int NET_ERROR_DOWNLOAD_INIT_EXCEPTION = 20103;
    /**网络错误-下载错误-关闭文件或者io异常*/
    public static final int NET_ERROR_DOWNLOAD_CLOSE_FILE_IO_EXCEPTION = 20104;

    // /**网络错误-下载错误-*/
    // public static final int NET_ERROR_Download = 20100;
    // /**网络错误-下载错误-*/
    // public static final int NET_ERROR_Download = 20100;

    /**数据库错误  数据库不存在,本地文件存在*/
    public static final int DATABASE_ERROR_NO = 30001;
    /**只有数据库  没有本地文件  */
    public static final int DATABASE_ERROR_NO_FILE = 30002;
    /**数据库错误  删除失败  */
    public static final int DATABASE_ERROR_DELETE_FILE = 30003;

    /**下载成功*/
    // 不用
    public static final int DOWNLOAD_SUCCESS = 50001;
    /**下载暂停*/
    // 不用
    public static final int DOWNLOAD_PAUSE_SUCCESS = 50002;
    /**下载停止  通常由异常引起*/
    // 不用
    public static final int DOWNLOAD_STOP_SUCCESS = 50003;
    /**下载删除 线程停止*/
    // 不用
    public static final int DOWNLOAD_THREAD_DELETY_SUCCESS = 50004;
    /**下载删除 静默停止*/
    // 不用
    public static final int DOWNLOAD_SILENCE_PAUSE_SUCCESS = 50005;

    /**操作成功*/
    public static final int OPERATION_SUCCESS = 60000;
    /**已经操作过了*/
    public static final int OPERATION_ALREADY_EXIST = 60001;
    /**操作失败*/
    public static final int OPERATION_FAILED = 60002;
    /**应用下载过，已经下载成功*/
    public static final int OPERATION_SUCCESSED = 60003;

    /**网络错误*/
    public static final int NET_ERROR = 20000;
    /**数据库错误*/
    public static final int DATABASE_ERROR = 30000;
    /**SD卡空间达到警戒值*/
    public static final int SD_NO_SPACE = 70000;
    /**SD 卡不可用*/
    public static final int SD_NO_USE = 70001;
    /**SD 空间小于100M*/
    public static final int SD_SPACE_SMALL = 70002;
    /**其他*/
    public static final int OTHER_ERROR = 80000;
    /**数据不可用*/
    public static final int NO_DATA = 90000;

    /**不上报*/
    public static final int NO_UPLOAD = 40000;


}
